package com.anXin.model.article.pojos;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 文章频道信息表，存储文章频道信息
 */
@Data
@TableName("anxin_article_channel")
public class ArticleChannel {
    /**
     * 频道id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 频道名称
     */
    @TableField("channel_name")
    private String channelName;
    /**
     *频道顺序
     */
    private Integer ordered;
    /**
     *创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;
    /**
     *更新时间
     */
    @TableField("updated_time")
    private Date updatedTime;
}
